package com.gao.entity;

import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.LinkedHashSet;
import java.util.Set;

/**
 * @author Gao
 */
@Data
public class Order implements Serializable {
    private Integer orderId;
    private Integer userId;
    private Double totalPrice;
    private Date orderDate;

    private Set<OrderItem> orderItems = new LinkedHashSet<>();
    private User user;
}